﻿using System;
using System.Collections.Generic;
using System.Text;

using H2.NET.Data.Common;
using H2.NET.Data.Common.Mappings;
using H2.NET.Data.Common.Validates;

namespace H2.NET.Business
{
    [Table]
    [Serializable]
    public partial class mdc_Material_Scan : DataObject
    {
        [ID]
        [DID]
        public string ID { get { return _ID; } set { _ID = value; EntityState.FieldChange("ID"); } }
        private string _ID;
        public static FieldInfo id = new FieldInfo("mdc_Material_Scan", "ID");

        [Column]
        public string Process { get { return _Process; } set { _Process = value; EntityState.FieldChange("Process"); } }
        private string _Process;
        public static FieldInfo process = new FieldInfo("mdc_Material_Scan", "Process");

        [Column]
        public int Incident { get { return _Incident; } set { _Incident = value; EntityState.FieldChange("Incident"); } }
        private int _Incident;
        public static FieldInfo incident = new FieldInfo("mdc_Material_Scan", "Incident");

        [Column]
        public string UserName { get { return _UserName; } set { _UserName = value; EntityState.FieldChange("UserName"); } }
        private string _UserName;
        public static FieldInfo userName = new FieldInfo("mdc_Material_Scan", "UserName");

        [Column]
        public int No { get { return _No; } set { _No = value; EntityState.FieldChange("No"); } }
        private int _No;
        public static FieldInfo no = new FieldInfo("mdc_Material_Scan", "No");

        [Column]
        public string Type { get { return _Type; } set { _Type = value; EntityState.FieldChange("Type"); } } 
        private string _Type; 
        public static FieldInfo type = new FieldInfo("mdc_Material_Scan", "Type");

        [Column]
        public string Scan { get { return _Scan; } set { _Scan = value; EntityState.FieldChange("Scan"); } } 
        private string _Scan; 
        public static FieldInfo scan = new FieldInfo("mdc_Material_Scan", "Scan");
        [Column]
        public string BPCS_Code { get { return _BPCS_Code; } set { _BPCS_Code = value; EntityState.FieldChange("BPCS_Code"); } } 
        private string _BPCS_Code; 
        public static FieldInfo bPCS_Code = new FieldInfo("mdc_Material_Scan", "BPCS_Code");

        [Column]
        public string Production_Name { get { return _Production_Name; } set { _Production_Name = value; EntityState.FieldChange("Production_Name"); } } 
        private string _Production_Name; 
        public static FieldInfo production_Name = new FieldInfo("mdc_Material_Scan", "Production_Name");

        [Column]
        public string SAP_Code { get { return _SAP_Code; } set { _SAP_Code = value; EntityState.FieldChange("SAP_Code"); } } 
        private string _SAP_Code; 
        public static FieldInfo sAP_Code = new FieldInfo("mdc_Material_Scan", "SAP_Code");

        [Column]
        public string Valid_From { get { return _Valid_From; } set { _Valid_From = value; EntityState.FieldChange("Valid_From"); } } 
        private string _Valid_From; 
        public static FieldInfo valid_From = new FieldInfo("mdc_Material_Scan", "Valid_From");

        [Column]
        public string Valid_To { get { return _Valid_To; } set { _Valid_To = value; EntityState.FieldChange("Valid_To"); } } 
        private string _Valid_To; 
        public static FieldInfo valid_To = new FieldInfo("mdc_Material_Scan", "Valid_To");

        [Column]
        public string Remark { get { return _Remark; } set { _Remark = value; EntityState.FieldChange("Remark"); } } 
        private string _Remark; 
        public static FieldInfo remark = new FieldInfo("mdc_Material_Scan", "Remark");

        [Column]
        [NowDate]
        public DateTime Time { get { return _Time; } set { _Time = value; EntityState.FieldChange("Time"); } }
        private DateTime _Time;
        public static FieldInfo time = new FieldInfo("mdc_Material_Scan", "Time");

        [Column]
        [DefaultInt(0)]
        public int Status { get { return _Status; } set { _Status = value; EntityState.FieldChange("Status"); } }
        private int _Status;
        public static FieldInfo status = new FieldInfo("mdc_Material_Scan", "Status");
    }
}
